<?php
namespace app\api\controller;

use think\Controller;
use app\common\model\RegisterAct as RegisterActModel;

class RegisterAct extends Controller
{
    public function modifyReg()
    {
    	$vb=new RegisterActModel();
    	$input=input();
    	if($input['id']){
    		$result=$vb->editLog($input);
	    }else{
    		$result=$vb->addLog($input);
	    }
	    if($result){
    		$this->success("操作成功");
	    }else{
	    	$this->error("操作失败");
	    }
    }
	public function delReg()
	{
		$vb=new RegisterActModel();
		$result=$vb->deleteLog(['id'=>input('id')]);
		if($result){
			$this->success("操作成功");
		}else{
			$this->error("操作失败");
		}
	}
	
}
